#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
cout << "Vvedite a u b"<<endl;
    int ama,b;
    cin >>ama;
    cin >>b;

double c=sqrt((ama*ama)+(b*b)) ;
cout << "Gepotinyza"<<endl;
cout <<c<<endl;

double p=(ama+b+c);
cout <<"Perimetr"<<endl;
        cout <<p;
    return a.exec();
}
